//
//  DuBaiTests.m
//  DuBaiTests
//
//  Created by darktm on 14-2-20.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import <XCTest/XCTest.h>

#import "TaskWithLogin.h"

@interface DuBaiTests : XCTestCase<WYHttpTaskDelegate>

@end

@implementation DuBaiTests

- (void)setUp
{
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown
{
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

#pragma mark - http delegate -

-(void)requestCompleteWithObj:(WYHttpTask *)obj{
    
    id rsult = [obj parese];
    DLog(@"%@",[obj class]);
    
    
}
-(void)requestFailWithMsg:(WYHttpTask *)obj{
    DLog(@"%@",obj.networkOp.url);
}


-(void)testLogin{
    
    TaskWithLogin *l = [[TaskWithLogin alloc] initWithName:@"111" withPwd:@"222"];
    l.delegate = self;
    [l start];
}

@end
